package com.anXin.model.article.pojos;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("anxin_article_reply")
public class Reply implements Serializable {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @TableField("article_id")
    private Long articleId;

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    @TableField("content")
    private String content;


    @TableField(fill= FieldFill.INSERT)
    private Date createdTime;

    @TableField(exist = false)
    private String username;

    @TableField(exist = false)
    private String avatar;
}
